package br.com.betioli.jme.games.sokobob;

import br.com.betioli.jme.games.sokobob.i18n.Messages;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;

/**
 *
 * @author Alexandre Parra Betioli
 */
public class InstructionsAlert extends Alert {

    private Command backToMenuCommand;
    
    public InstructionsAlert() {
        super(
                Messages.getMessage("instructions-title"),
                Messages.getMessage("instructions-des1")+ " " +
                Messages.getMessage("instructions-des2")+ " " +
                Messages.getMessage("instructions-des3"),
                null,
                AlertType.INFO
                );
        
        backToMenuCommand = new Command(Messages.getMessage("command-back"), Command.BACK, 0);
        addCommand(backToMenuCommand);
        
        setTimeout(FOREVER);
    }
    
}
